<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>MAudio3D : : MSoundSource3D : : distanceAttenuation ( )</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body> 
<center>
<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="100" valign="top" class="header"><span class="libName">MAudio3D</span><br>
        <a href="index.htm">index</a></td>
    <td width="450" class="descList">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" class="mainTextName">Name</td>
    <td class="methodName">distanceAttenuation ( )</td>
  </tr>
  <tr>
    <td valign=top class="mainText">Examples</td>
    <td valign=top class="descList"><pre>None available</pre></td>
  </tr>
  <tr>
    <td valign=top class="mainText">Description</td>
    <td valign=top class="descList">Sets all the 3D audio distance attenuation parameters simultaneously.
 
 Distances are specified in millimeters.</td>
  </tr>
  <tr>
    <td valign=top class="mainText">Syntax</td>
    <td valign=top class="descList"><pre>distanceAttenuation(minDistance, maxDistance, muteAfterMax, rolloffFactor);
</pre></td>
  </tr>
  
     <tr>
       <td class="mainText">Parameters</td>
       <td valign=top class="descList">
         <table border=0 cellspacing=0 cellpadding=0>
           
      <tr>
        <td width="70" valign=top>minDistance</td>
        <td width="20">&nbsp;</td>
        <td valign=top>the minimum distance, below which the distance gain is clipped to its maximum value of 1.0</td>
	  </tr>
    
      <tr>
        <td width="70" valign=top>maxDistance</td>
        <td width="20">&nbsp;</td>
        <td valign=top>the maximum distance, beyond which the distance gain does not decrease any more. 
			The exact behaviour of the gain at distances beyond the maximum distance depends on the value 
			of the muteAfterMax.</td>
	  </tr>
    
      <tr>
        <td width="70" valign=top>muteAfterMax</td>
        <td width="20">&nbsp;</td>
        <td valign=top>a boolean determining how the distance gain behaves at distances greater than maxDistance: 
 			true if beyond the maximum distance the source is silent; false if beyond the maximum distance 
			the source's gain is held constant at the level at the maximum distance.</td>
	  </tr>
    
         </table>
	   </td>
	 </tr>
   
  
     <tr>
       <td valign=top class="mainText">Returns</td>
       <td class="descList">None</td>
     </tr>
   
  <tr>
    <td valign=top class="mainText">Usage</td>
    <td class="descList">Web & Application</td>
  </tr>
  <tr>
    <td valign=top class="mainText">Related</td>
    <td class="descList"></td>
  </tr>
  <tr>
    <td></td>
    <td class="descList">&nbsp;</td>
  </tr>
</table>
</center>
</body>
</html>
